package com.example.fourm.services;

import com.example.fourm.model.Message;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IMessageService {
    void create(Message message);

    Integer selectUnreadCount(Long receiveUserId);

    Message selectById(Long id);

    List<Message> selectByReceiveUserId(Long receiveUserId);

    //更新站内信状态
    void updateStateById(Long id, Byte state);

    //站内信回复
    @Transactional
    void reply(Long repliedId,Message message);
}
